/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.edu.utn.frsf.tpae.a2012.g03.model;

import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author fededalla
 */
public class Movimiento implements Serializable {
    private Integer movId;
    private Date movFech;
    private double movMont;
    private Cuenta movCtaId;
    private MovimientoPago movPag;

    public Movimiento() {
    }

    public Movimiento(Integer movId) {
        this.movId = movId;
    }

    public Movimiento(Integer movId, Date movFech, double movMont, Cuenta unaCuenta) {
        this.movId = movId;
        this.movFech = movFech;
        this.movMont = movMont;
    }

    public Integer getMovId() {
        return movId;
    }

    public void setMovId(Integer movId) {
        this.movId = movId;
    }

    public Date getMovFech() {
        return movFech;
    }

    public void setMovFech(Date movFech) {
        this.movFech = movFech;
    }

    public double getMovMont() {
        return movMont;
    }

    public void setMovMont(double movMont) {
        this.movMont = movMont;
    }

    public Cuenta getMovCtaId() {
        return movCtaId;
    }

    public void setMovCtaId(Cuenta movCtaId) {
        this.movCtaId = movCtaId;
    }

    public MovimientoPago getMovPag() {
        return movPag;
    }

    public void setMovPag(MovimientoPago movPag) {
        this.movPag = movPag;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (movId != null ? movId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Movimiento)) {
            return false;
        }
        Movimiento other = (Movimiento) object;
        if ((this.movId == null && other.movId != null) || (this.movId != null && !this.movId.equals(other.movId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Mov[ movId=" + movId + " ]";
    }
    
}
